import * as log4js from 'log4js'

log4js.configure({
    appenders: {
        console: {type: 'console'},
        infoLogs: {
            type: 'dateFile',
            filename: 'logs/info.log',
            daysToKeep: 10,
            pattern: '-yyyy-MM-dd.log',
            alwaysIncludePattern: true
        },
    },
    categories: {
        default: {appenders: ['console', 'infoLogs'], level: 'all'},
    }
});
const log = log4js.getLogger();
export default log